#include <QGLGraphicsViewer/constraint.h>

class RangeAxisConstraint : public LocalConstraint
{
public :
  RangeAxisConstraint();
  virtual void constrainRotation(Quaternion &rotation, Frame *const frame);

private :
  float minAngle, maxAngle; // between 0 and 2pi, with min <= max
  Vec referenceY; // an arbitrary direction, used to measure frame angle
};
